<?
	//HOME TOP LINK TO BACK
	$HomeLink = "<div><a href=\"".$root."/trang-chu/\">Trang chủ</a></div>";
	
	if(isset($_GET['cid'])){
		$cid = intval($_GET['cid']);
		$rs = $db->query("SELECT * FROM ".$prefix."loairaovat WHERE rvc_id = '".$cid."' AND rvc_hienthi = 1");
		if($db->num_rows($rs) != 0){
			$row = $db->fetch_array($rs);
			
			if($row[rvc_id_cha] == 0){
				$cat_name = stripslashes($row[rvc_ten]);
				$cat_id = $row[rvc_id];
				$HomeLink .= "  ".$cat_name."";
			}else{
				$c_name = stripslashes($row[rvc_ten]);
				$cat_id = $row[rvc_id_cha];
				$rs2 = $db->query("SELECT * FROM ".$prefix."loairaovat WHERE rvc_id = '".$cat_id."' AND rvc_hienthi = 1");
				$row2 = $db->fetch_array($rs2);
				$cat_name = stripslashes($row2[rvc_ten]);
				$HomeLink .= "<div><a href=\"".$root."/danh-muc-rao-vat/".$cat_id."/".$myString->vietdecode($cat_name)."\">".$cat_name."</a></div><div><a>".$c_name."</a></div>";
			}
		}else{
			$HomeLink .= "<div><a>Rao vặt</a></div>";
		}
	}else{$cid=0; $HomeLink .= "<div><a>Rao vặt</a></div>";}
	
?>
<div class="linkPath">	
	<div class="linkPath-text"><?=$HomeLink?>
		<?
			file_exist('includes/inc_thong_tin_rieng.php');
			include('includes/inc_thong_tin_rieng.php');	
		?>
	</div>
</div>
    <!-- Main Page-Content { -->    
    <div id="page-content">            
        <div id="page-content-lpane">                        
            

<!-- Menu Left { -->
	<?
		file_exist('includes/raovat/inc_menu_left.php');
		include('includes/raovat/inc_menu_left.php');
	?>
<!-- } Menu Left -->

<!-- QUANG CAO -->

	<?
		file_exist('includes/raovat/inc_quangcao.php');
		include('includes/raovat/inc_quangcao.php');
	?>

<!-- QUANG CAO END -->

       
            
<!-- FiltersBox { -->
	
	<?
		file_exist('includes/raovat/inc_timkiem.php');
		include('includes/raovat/inc_timkiem.php');
	?>

<!-- } FiltersBox --> 
  </div>
  
  <!-- END LEFT - BEGIN MAIN -->

<div id="page-content-mpane-all">
            
			<!-- PRODUCT TOP -->
			
			<? 
				if($_SESSION['is_login'] == true){
					file_exist('includes/raovat/inc_top.php');
					include('includes/raovat/inc_top.php');
				}
			?>
			
			<!-- END PRODUCT TOP -->

            
            <!-- CONTENT -- >
			
			<? 
				if(isset($_GET['modu']) && ($_GET['modu'] == 'quanlytindang') ){
					
					file_exist('includes/raovat/inc_quanlytindang.php');
					include('includes/raovat/inc_quanlytindang.php');
					
				}else{
					file_exist('includes/raovat/inc_home.php');
					include('includes/raovat/inc_home.php');
				}
			?>
			
			<!-- CONTENT -->


                              
        </div>                
    </div>
    <div style="clear:both;"></div>      
    <!-- } Main Page-Content -->  
	<?
		$qc_kieuchungloai = 1;
		file_exist('includes/inc_quangcao_bottom.php');
		include('includes/inc_quangcao_bottom.php');
	?>
          
</div>
